package ArithmeticObjects;

/**
 * Representing a Group, indicating relevant arithmetic objects' order 
 * @author Idan
 */
public class Group {
	protected LargeNumberObject order;
	
	/**
	 * creates a Group from an LargeNumberObject representing its order
	 * @param order a LargeNumberObject representing the Group's order
	 * @throws Exception in case the order was not given as a LargeNumberObject
	 */
	public Group(Element order) throws Exception{
		this.order = new LargeNumberObject(order.getValue());
	}
	
	/**
	 * @return the Group's order
	 */
	public Element getOrder() {
		return order;
	}
}
